<?php

class GetUser_Model extends Model_Core{

	private static $instance;

	public function __construct(){
		parent::__construct();
	}

    public static function singleton(){
        if (!isset(self::$instance)) {
            $c = __CLASS__;
            self::$instance = new $c;
        }
        return self::$instance;
    }


	public function getUserName($userId){
		if ($userId == 'user1'){
			return '野比　のび太';
		}elseif ($userId == 'user2'){
			return '本郷　猛';
		}elseif ($userId == 'user3'){
			return 'トロッコ爺';
		}else{
			return '';
		}
	}

	public function getPassWord($userId){
        if ($userId == 'user1'){
            return 'user1';
        }elseif ($userId == 'user2'){
            return 'user2';
        }elseif ($userId == 'user3'){
            return 'user3';
        }else{
            return '';
        }
	}
}